package com.handinglian.ai.common.shiro;

import lombok.Data;

/**
 * 用户和密码（包含验证码）令牌类
 * @author ThinkGem
 * @version 2013-5-19
 */
@Data
public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {

	private static final long serialVersionUID = 1L;

	/**
	 * 1 PC端 2安卓 3ios
	 */
	private Integer loginType;

	/**
	 * 推送id
	 */
	private String pushId;

	public UsernamePasswordToken() {
		super();
	}

	public UsernamePasswordToken(String username, char[] password,
                                 boolean rememberMe, String host) {
		super(username, password, rememberMe, host);
		setLoginType(loginType);
		setPushId(pushId);
	}

}